import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        String s1 = in.nextLine();
        String s2 = in.nextLine();
        char[] ch = s1.toCharArray();
        int length = ch.length;
        for(int i = 0;i<s2.length();i++){
            char c = s2.charAt(i);
            System.out.println(c);
            for(int j = 0;j<length;j++){
                if(ch[j]==c){
                    for(int m=j;m<length-1;m++){
                        ch[m] = ch[m+1];
                    }
                    length--;
                }
            }
        }
        System.out.println(ch);
        System.out.println(s2);
        System.out.println("==========================");
        for (int i = 0; i < length; i++) {
            System.out.print(ch[i]);
        }
    }
}
